package com.ruoyi.shop.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.shop.mapper.DayInventoryMapper;
import com.ruoyi.shop.domain.DayInventory;
import com.ruoyi.shop.service.IDayInventoryService;

/**
 * 商品日清Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-08
 */
@Service
public class DayInventoryServiceImpl implements IDayInventoryService 
{
    @Autowired
    private DayInventoryMapper dayInventoryMapper;

    /**
     * 查询商品日清
     * 
     * @param id 商品日清主键
     * @return 商品日清
     */
    @Override
    public DayInventory selectDayInventoryById(Long id)
    {
        return dayInventoryMapper.selectDayInventoryById(id);
    }

    /**
     * 查询商品日清列表
     * 
     * @param dayInventory 商品日清
     * @return 商品日清
     */
    @Override
    public List<DayInventory> selectDayInventoryList(DayInventory dayInventory)
    {
        return dayInventoryMapper.selectDayInventoryList(dayInventory);
    }

    @Override
    public List<DayInventory> selectDayInventoryList2(DayInventory dayInventory) {
        return dayInventoryMapper.selectDayInventoryList2(dayInventory);
    }

    @Override
    public List<DayInventory> selectDayInventoryList3(DayInventory dayInventory) {
        return dayInventoryMapper.selectDayInventoryList3(dayInventory);
    }
    @Override
    public List<DayInventory> selectDayInventoryList4(DayInventory dayInventory) {
        return dayInventoryMapper.selectDayInventoryList4(dayInventory);
    }


    /**
     * 新增商品日清
     * 
     * @param dayInventory 商品日清
     * @return 结果
     */
    @Override
    public int insertDayInventory(DayInventory dayInventory)
    {
        return dayInventoryMapper.insertDayInventory(dayInventory);
    }

    /**
     * 修改商品日清
     * 
     * @param dayInventory 商品日清
     * @return 结果
     */
    @Override
    public int updateDayInventory(DayInventory dayInventory)
    {
        return dayInventoryMapper.updateDayInventory(dayInventory);
    }

    /**
     * 批量删除商品日清
     * 
     * @param ids 需要删除的商品日清主键
     * @return 结果
     */
    @Override
    public int deleteDayInventoryByIds(Long[] ids)
    {
        return dayInventoryMapper.deleteDayInventoryByIds(ids);
    }

    /**
     * 删除商品日清信息
     * 
     * @param id 商品日清主键
     * @return 结果
     */
    @Override
    public int deleteDayInventoryById(Long id)
    {
        return dayInventoryMapper.deleteDayInventoryById(id);
    }
}
